package com.yuyang.gulimall.cart.service;

import com.yuyang.gulimall.cart.vo.CartItemVo;
import com.yuyang.gulimall.cart.vo.CartVo;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * @author yu yang
 * @date 2023/1/29 -11:26
 */
public interface CartService {
    CartItemVo addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    CartItemVo getCartItemById(Long skuId);

    void deleteIdCartInfo(Integer skuId);

    void changeItemCount(Long skuId, Integer num);

    void checkItem(Long skuId, Integer checked);

    CartVo getCart() throws ExecutionException, InterruptedException;

    List<CartItemVo> getCheckItems();
}
